package com.atguigu.day06.test;

import java.util.Scanner;

/**
 * @version 1.0
 * @Author 马冰
 * @Date 2024/11/5 15:21
 * @注释
 */
public class MethodParamterExer {
    public static void judge(int a){
        if(a % 2 == 0){
            System.out.println(a + "是一个偶数");
        }else{
            System.out.println(a + "不是一个偶数");
        }
    }

    public static void joint(String s, int i , int j) {
        System.out.println(s+i+j);
    }

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入一个整数");
        int a = sc.nextInt();
        judge(a);
        sc.close();
        System.out.println("---------------------------");

        joint("安其拉", 5, 10);
    }
}
